
def rotateString(s, goal):
    if len(s) != len(goal):
        return False
    return goal in s + s

print(rotateString("abcde",'cdeab'))
print(rotateString("abcde",'eabdc'))
